package com.sdgakj.repository;

import com.sdgakj.entity.MessageUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface MessageUserDao extends PagingAndSortingRepository<MessageUser, Long>, JpaSpecificationExecutor<MessageUser> {
	
	@Query("from MessageUser s where s.deltag = ?1 ")
	List<MessageUser> findByTag(String tag);

}
